home *** CD-ROM | disk | FTP | other *** search
- global gHealth, gScore, Obj_ID
-
- on initCounters
- if (gHealth < 1) and (gScore < 1) then
- set gHealth to 0
- set gScore to 0
- set the text of cast "score" to "0"
- else
- adjustScoreMeter()
- adjustHealthMeter()
- updateStage()
- end if
- end
-
- on adjustScoreMeter
- set the text of cast "score" to string(gScore)
- if gScore >= 1500 then
- play movie "kfkLIN3.DIR"
- end if
- end
-
- on adjustHealthMeter
- if (gHealth > -11) and (gHealth < 11) then
- set the castNum of sprite 7 to the number of cast "tao 0" + gHealth
- end if
- updateStage()
- if gHealth = -10 then
- doGameOver()
- end if
- if gHealth > 10 then
- set gHealth to 10
- updateStage()
- end if
- if (gHealth = -3) or (gHealth = -6) or (gHealth = -9) then
- launchHealthGoody()
- end if
- end
-
- on doGameOver
- set the keyDownScript to EMPTY
- set the keyUpScript to EMPTY
- set the timeoutScript to EMPTY
- addProp(nastyList, Obj_ID, birth(script "paint spot Kim Death parent", Obj_ID))
- advancenastyIDcounter()
- set gKimPos to #DEAD
- set gHealth to -15
- end
-